<?php

namespace App\Http\Controllers\Common;

use App\Http\Controllers\BaseController;
use App\Params\Common\SpecialApplyAddParam;
use App\Params\Common\SpecialApplyEditParam;
use App\Service\Common\SpecialApplyService;

class SpecialApplyController extends BaseController
{

    /**
     *  藏品铸造申请列表
     */
    public function list()
    {

    }

    /**
     *  藏品铸造申请编辑
     * @throws \App\Exceptions\BusinessException|\OSS\Core\OssException
     */
    public function add(): \Illuminate\Http\JsonResponse
    {
        $param = SpecialApplyAddParam::create();
        $ret = SpecialApplyService::getInstance()->add($param);
        return $this->success($ret);
    }

    /**
     *  藏品铸造申请新增
     * @throws \App\Exceptions\BusinessException
     */
    public function edit(): \Illuminate\Http\JsonResponse
    {
        $param = SpecialApplyEditParam::create();
        $ret = SpecialApplyService::getInstance()->edit($param);
        return $this->success($ret);
    }
}
